package com.hww.doc.framework.object;

import java.util.List;

/**
 * @author yaxu.huang
 * @version 1.0
 * @date 2021-3-14
 * @since 1.0
 */
public interface AbstractService<T, PK> {

	T insert(T entity);

	default void insertList(List<T> entities) {
	}

	boolean removeByPrimaryKey(PK primaryKey);

	boolean updateSelective(T entity);

	T getByPrimaryKey(PK primaryKey);

	default List<T> listAll() {
		return null;
	}
}